<html>
<head><meta charset="utf-8"><title>crosscompiling to 32 bit · t-compiler · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/index.html">t-compiler</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/crosscompiling.20to.2032.20bit.html">crosscompiling to 32 bit</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="194740743"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/crosscompiling%20to%2032%20bit/near/194740743" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/crosscompiling.20to.2032.20bit.html#194740743">(Apr 20 2020 at 22:21)</a>:</h4>
<p>Hey so I want to build 32 bit rust on my system but I'm getting weird errors:</p>
<div class="codehilite"><pre><span></span>running: &quot;ccache&quot; &quot;cc&quot; &quot;-O3&quot; &quot;-ffunction-sections&quot; &quot;-fdata-sections&quot; &quot;-fPIC&quot; &quot;-g&quot; &quot;-fno-omit-frame-pointer&quot; &quot;-m32&quot; &quot;-march=i686&quot; &quot;-ffunction-sections&quot; &quot;-fdata-sections&quot; &quot;-fPIC&quot; &quot;-m32&quot; &quot;-march=i686&quot; &quot;-fno-bu\
iltin&quot; &quot;-fvisibility=hidden&quot; &quot;-ffreestanding&quot; &quot;-DVISIBILITY_HIDDEN&quot; &quot;-o&quot; &quot;/home/nmatsakis/versioned/rust-0/build/x86_64-unknown-linux-gnu/stage2-std/i686-unknown-linux-gnu/release/build/compiler_builtins-94\
9a2f6c06b0e215/out/absvdi2.o&quot; &quot;-c&quot; &quot;/home/nmatsakis/versioned/rust-0/src/llvm-project/compiler-rt/lib/builtins/absvdi2.c&quot;
cargo:warning=In file included from /usr/lib/gcc/x86_64-linux-gnu/9/include-fixed/limits.h:194,
cargo:warning=                 from /usr/lib/gcc/x86_64-linux-gnu/9/include-fixed/syslimits.h:7,
cargo:warning=                 from /usr/lib/gcc/x86_64-linux-gnu/9/include-fixed/limits.h:34,
cargo:warning=                 from /home/nmatsakis/versioned/rust-0/src/llvm-project/compiler-rt/lib/builtins/int_lib.h:76,
cargo:warning=                 from /home/nmatsakis/versioned/rust-0/src/llvm-project/compiler-rt/lib/builtins/absvdi2.c:13:
cargo:warning=/usr/include/limits.h:26:10: fatal error: bits/libc-header-start.h: No such file or directory
cargo:warning=   26 | #include &lt;bits/libc-header-start.h&gt;
cargo:warning=      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
cargo:warning=compilation terminated.
exit code: 1
</pre></div>



<a name="194740763"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/crosscompiling%20to%2032%20bit/near/194740763" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/crosscompiling.20to.2032.20bit.html#194740763">(Apr 20 2020 at 22:21)</a>:</h4>
<p>I'm imagining I probably need to install some packages or something</p>



<a name="194740772"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/crosscompiling%20to%2032%20bit/near/194740772" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/crosscompiling.20to.2032.20bit.html#194740772">(Apr 20 2020 at 22:22)</a>:</h4>
<p>I'm running Ubuntu Server</p>



<a name="194740815"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/crosscompiling%20to%2032%20bit/near/194740815" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/crosscompiling.20to.2032.20bit.html#194740815">(Apr 20 2020 at 22:22)</a>:</h4>
<p>anybody have any ideas?</p>



<a name="194750587"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/crosscompiling%20to%2032%20bit/near/194750587" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Wesley Wiser <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/crosscompiling.20to.2032.20bit.html#194750587">(Apr 21 2020 at 00:47)</a>:</h4>
<p>Perhaps <a href="https://stackoverflow.com/a/53496910/124538" title="https://stackoverflow.com/a/53496910/124538">https://stackoverflow.com/a/53496910/124538</a>?</p>



<a name="194751663"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/crosscompiling%20to%2032%20bit/near/194751663" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/crosscompiling.20to.2032.20bit.html#194751663">(Apr 21 2020 at 01:05)</a>:</h4>
<blockquote>
<p>sudo apt install gcc-multilib</p>
</blockquote>
<p>did the trick</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>